package com.delivery.www.servlet;

import com.delivery.www.po.User;
import com.delivery.www.service.ServiceImpl.UserServiceImpl;

import java.util.Scanner;

public class UserLoginPage {
    public  static User userLogin(){
        Scanner scanner = new Scanner(System.in);
        System.out.println("用户名：");
        String name = scanner.next();
        System.out.println("密码：");
        String password = scanner.next();
        UserServiceImpl userService = new UserServiceImpl();
        return userService.login(name, password);
    }
}
